package nc.ui.arap.selectedpay;


import java.util.Vector;

import nc.impl.arap.proxy.Proxy;
import nc.vo.arap.exception.ExceptionHandler;
public class FaLoadButtonListener implements ButtonListener {
  public FaLoadButtonListener() {
  }
  public void action(nc.ui.arap.selectedpay.ButtonEvent1 e) throws Exception{
    /**@todo Implement this nc.ui.arap.selectedpay.ButtonListener method*/
    MainPanel parent=(MainPanel)((ARAPButton)e.getSource()).getOwner();
      try
      {
        String pk_corp=parent.getClientEnvironment().getCorporation().getPk_corp();
        Vector vos=Proxy.getIFaControlPrivate().LoadAllFa(pk_corp,parent.getNode());
        new FaLoadDialog(vos,parent,parent.favo,parent.filter.getQueryclient(),parent.getPcltjpanel()).setVisible(true);
      }
      catch(Exception ex)
      {
    	  ExceptionHandler.consume(ex);
        parent.showErrorMessage(ex.getMessage());
        throw ex;
      }

  }

}
